package net.yunzhanyi.generic.domain.model;

import java.io.Serializable;

public class ClientBrowse implements Serializable {
    /**
     * 浏览id
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 资源id
     */
    private Long resId;

    /**
     * 资源类型
     */
    private Short resType;

    /**
     * 浏览时间
     */
    private Long browseTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    public Short getResType() {
        return resType;
    }

    public void setResType(Short resType) {
        this.resType = resType;
    }

    public Long getBrowseTime() {
        return browseTime;
    }

    public void setBrowseTime(Long browseTime) {
        this.browseTime = browseTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", resId=").append(resId);
        sb.append(", resType=").append(resType);
        sb.append(", browseTime=").append(browseTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}